<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户登录 </title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/cal.js"></script>

</head>

<body>

<logic:notEmpty name="passwordSuccess" scope="request">
您的密码已经修改成功！
</logic:notEmpty>
<logic:empty name="passwordSuccess" scope="request">
<html:form action="login" method="post">
<html:hidden property="callMethod"  styleId="callMethod" value="updatePassword"/>
	<table  border="0" cellpadding="10" cellspacing="0">
	<tr>
		<td style="text-align: right;">用&nbsp;户&nbsp;名：</td>
		<td><html:text property="backUser.usernum" maxlength="20"  readonly="true" style="background-color:#EBEBEB;border:1px solid #CCC;"/></td>
	</tr>
	<tr style="padding-top:30px;">
	<td style="text-align: right;">密&nbsp;&nbsp;&nbsp;&nbsp;码：</td>
		<td><html:password styleId="backUser.password" maxlength="20"  property="backUser.password"/></td>
	</tr>
	<tr>
	<td style="text-align: right;">确认密码：</td>
		<td><html:password styleId="backUser.password1" maxlength="15" property="backUser.password1" value=""/></td>
	</tr>
	<tr>
		<td><input type="button" onclick="changePassword();" value="确定"/></td>
	</tr>
	</table>


</html:form>
</logic:empty>

<script >
function changePassword(){
	
	if($.trim($('#backUser\\.password').val())==""){
		alert('密码不能为空！');
		return ;
	}
	
	
	if($.trim($('#backUser\\.password').val())!=$.trim($('#backUser\\.password1').val())){
		alert('密码输入不一致！');
		return ;
	}
	
	$("form:first").submit(); 

}

</script>
</body>
</html>